package com.uhu;

import com.uhu.generator.GeneratorUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liujunjie
 * @description
 * @create 2023-11-23 15:02
 **/
@Slf4j
@SpringBootApplication
public class UtagGeneratorApplication {
    public static void main(String[] args) {
        SpringApplication.run(UtagGeneratorApplication.class, args);
        List<String> tableNames = new ArrayList<>();
        tableNames.add("t_staff");
        tableNames.add("t_client");
        tableNames.add("t_staff_client");
        log.info("start 生成代码。。。。。。");
        GeneratorUtils.defaultGenerator(tableNames);
        log.info("end 生成代码。。。。。。");
    }
}
